
<div class='center_form' style="min-width: 750px;width: 100%;">
	<span class="center_top_title"><?php echo $this->translate("addMetadata"); ?></span>
    <div class="center_form_right">
        <div class='center_form_btn_div' onclick='javascript:MetadataSet.submitAddForm("metadata");'>
            <div class='center_form_btn_pic'>
                <img src='<?php echo HttpUtil::baseUrl();?>/images/save.gif'/>
            </div><div class='center_form_btn_text'><?php echo $this->translate("saveBtn"); ?></div>
        </div>

    </div>
</div>
<div class="clear"></div>
<div class="centerbig_form" style="min-width: 750px;border-top: 1px solid #E3E3E3;width: 100%;"> 
      <div class="form_content">
<form action="<?php echo $this->form->getAction(); ?>" method="post" id="addform">
                        <?php ZendFormUtil::renderElement($this->form->code,array("style"=>"width:150px")); ?>
                        <?php ZendFormUtil::renderElement($this->form->title,array("style"=>"width:150px")); ?>
                        <?php ZendFormUtil::renderElement($this->form->longTitle,array("style"=>"width:150px")); ?>
                        <?php ZendFormUtil::renderElement($this->form->sortOrder,array("style"=>"width:150px")); ?>
                        <?php ZendFormUtil::renderElement($this->form->level,array("style"=>"width:150px")); ?>
                        <?php ZendFormUtil::renderElement($this->form->inputType,array("style"=>"width:150px")); ?>
                        <div id="defaultValueDiv">
                            <div class="form_line_div">
                                <div class="form_element_label" style="width:150px;"><?php echo $this->translate("defaultValueLabel"); ?></div>
                                <div class="form_element">
                                  <input type='text' name='defaultValue' />
                                </div>
                            </div>
                            <div class="clear"></div>
                        </div>
                        <?php ZendFormUtil::renderElement($this->form->valueRequired,array("style"=>"width:150px")); ?>
                        <?php ZendFormUtil::renderElement($this->form->inBasicSearch,array("style"=>"width:150px")); ?>
                        <?php ZendFormUtil::renderElement($this->form->inAdvanceSearch,array("style"=>"width:150px")); ?>
                        <?php ZendFormUtil::renderElement($this->form->isPrimary,array("style"=>"width:150px")); ?>
                        <?php ZendFormUtil::renderElement($this->form->showInProduct,array("style"=>"width:150px")); ?>
                        <div id="metadataOptionDiv" style="display: none;">
                            <div class="form_line_div">
                                  <div class="form_element_label" style="width:150px;">
                                        <?php echo $this->translate("metadataOptionMsg"); ?>
                                  </div>
                                  <div class="form_element" >
                                        <input type="hidden" value="0" id="optionCount" />
                                        <table class="form_element_table" cellspacing="0" cellpadding="0" style="margin-top: 5px; margin-left: 2px;margin-bottom: 25px;">
                                            <thead>
                                                <tr>
                                                    <td class="dbgrid_th2">
                                                        &nbsp;
                                                    </td>                                                   
                                                    <td class="dbgrid_th2">
                                                        <span style="width: 180px;"><?php echo $this->translate("optionValue"); ?></span>
                                                    </td>
                                                    <td class="dbgrid_th2">
                                                        <span style="width: 180px;"><?php echo $this->translate("optionTitle"); ?></span>
                                                    </td>
                                                    <td class="dbgrid_th2">
                                                        <span style="width: 40px;"><?php echo $this->translate("optionOrder"); ?></span>
                                                    </td>
                                                    <td class="dbgrid_th2">
                                                        <input type="button" value="<?php echo $this->translate("addNewOption"); ?>" onclick="javascript:MetadataSet.addOption();" />
                                                    </td>
                                                </tr>
                                            </thead>
                                            <tbody id="metadataOptionBody">
                                                
                                            </tbody>
                                        </table>
                                  </div>
                                  <div class='clear'></div>
                            </div>
                        </div>
                        <div class='clear'></div>
                    </form>

      </div>
</div>
<div class='clear'></div>
<div style="display: none;" id="color_select_element" >
<select name='optionValue[]' style='width:180px;'>
<?php 
foreach($this->colors as $color){
	echo '<option value="'.$color['value'].'">'.$color['title'].'</option>';
}
?>
</select>
</div>